package com.woniuxy.param;

import lombok.Data;

import java.util.Objects;

@Data
public class UserParam {
    private String tel;

    private String account;

    private String psw;

    private String code;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserParam userParam = (UserParam) o;
        return tel.equals(userParam.tel) && code.equals(userParam.code);
    }

    @Override
    public int hashCode() {
        return Objects.hash(tel, code);
    }
}
